package com.jone.bang.model;

import android.content.Context;
import android.text.Html;
import android.view.View;
import android.view.ViewGroup;
import android.widget.BaseAdapter;
import android.widget.TextView;

public class GalleryAdapter extends BaseAdapter{
	
	private Context mContext;
	
	private String[] items;

    
    public GalleryAdapter(Context c,String[] channels) {
        this.mContext = c;       
        this.items = channels;
    }

    public int getCount() {
        return items.length;
    }

    public Object getItem(int position) {
        return position;
    }

    public long getItemId(int position) {
        return position+1;
    }

    public View getView(int position, View convertView, ViewGroup parent) {
        TextView txt = new TextView(mContext);
        txt.setText(Html.fromHtml("<U><B><font color=\"#000099\">"+items[position]+"</font></B></U>"));   
        txt.setTextSize(18);  
        return txt;
    }

  
 

}
